<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Json数据格式</title>
    <script src="../../js/jquery-1.4.2.js"></script>
</head>
<body>

</body>
<script>
    //创建一个对象，韦小宝
    var person = {
        "name":"韦小宝",
        "age":16,
        "teacher":["陈近南","独臂神尼","海大富"],
        "wife":[
            {
                "name":"苏荃",
                "age":19
            },
            {
                "name":"双儿",
                "age":16
            },
            {
                "name":"曾柔",
                "age":15
            },
            {
                "name":"方怡",
                "age":15
            },
            {
                "name":"方剑屏",
                "age":12
            },
            {
                "name":"建宁公主",
                "age":14
            },
            {
                "name":"阿珂",
                "age":16
            }
        ]

    }
    console.log(person.name)
    console.log(person.wife[2].name)
</script>
</html>